<?php
namespace App\WS;

use Swoft\Http\Message\Request;
use Swoft\WebSocket\Server\Annotation\Mapping\OnMessage;
use Swoft\WebSocket\Server\Annotation\Mapping\OnOpen;
use Swoft\WebSocket\Server\Annotation\Mapping\WsModule;
use Swoole\WebSocket\Frame;
use Swoole\WebSocket\Server;
use Swoft\WebSocket\Server\MessageParser\TokenTextParser;
/**
 * Class TestWS
 * @package App\WS
 * @WsModule(path="/test",controllers={
            TestController::class
 *     }, messageParser=TokenTextParser::class,)
 */
class TestWS{

//    /**
//     * @OnOpen()
//     * @param Request $request
//     * @param int $fd
//     */
//    function testOpen(Request $request, int $fd){
//        server()->push($fd,"hello shenyi!");
//    }



}